<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>牧心农业</title>
    <link rel="stylesheet" type="text/css" href="/static/css/eui.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/style.css" />
    <style>
        .bg2{
            background: url(<{$bg}>);
            background-size: 100% 100%;
        }
    </style>
</head>
<body>
    <div class="content bg2 relative">
        <div class="absolute h_justify lineheight_3 font_20 white data_list" style="top:26%;left:30%;width:40%;"></div>
        <div class="text2 center" onclick="location.href='<{url route='/screen/site/index'}>'"></div>
        <div class="absolute text_center font_18 lineheight_2" style="top:60%;left:40%;width:16%;color:#000">
            <div class="margin_b_10 bg_gradient_white cursor" onclick="location.href='<{url route='site/farmer-map'}>'">农户分布</div>
            <div class="margin_b_10 bg_gradient_white cursor" onclick="location.href='<{url route='site/introduction'}>'">企业简介</div>
            <div class="bg_gradient_white cursor" onclick="location.href='<{url route='site/news'}>'">最新动态</div>
        </div>
    </div>
    <script type="text/template" charset="utf-8" id='data_template'>
        <div>农户：<span class="danger">{{=it.farmers}}</span></div>
        <div>存栏量：<span class="danger">{{=it.numbers}}</span></div>
        <div>用户数：<span class="danger">{{=it.others}}</span></div>
    </script>
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/doT.min.js"></script>
    <script>
        var data = {farmers:<{$count}>,numbers:<{$pigcount}>,others:<{$fanscount}>};
        var evaldata = doT.template($("#data_template").text());
        $(".data_list").html(evaldata(data));
    </script>
</body>
</html>
